package com.smartEdu.dao;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

import com.smartEdu.commons.CMap;
import com.smartEdu.mapper.InitMapper;
import com.smartEdu.model.NewsSimpleModel;

@Repository(value="initDao")
public class InitDao {
	@Autowired(required=false)
	@Qualifier("initMapper")
	private InitMapper initMapper;
	
	public List<NewsSimpleModel> initNotice() {
		return initMapper.initNotice();
	}
	
	public List<NewsSimpleModel> initNews() {
		return initMapper.initNews();
	}
	
	public List<Map<String, Object>> initToken() {
		return initMapper.initToken();
	}
	public CMap initAcademic() {
		CMap map = new CMap();
		map.put("ACADEMIC", initMapper.initAcademic());
		map.put("ACADEMICLIST", initMapper.initAcademicList());
		return map;
	}
}
